<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Validates this collection</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mongocollection.update.html">MongoCollection::update</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.mongocursor.html">MongoCursor</a></div>
 <div class="up"><a href="class.mongocollection.html">MongoCollection</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="mongocollection.validate" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MongoCollection::validate</h1>
  <p class="verinfo">(PECL mongo &gt;=0.9.0)</p><p class="refpurpose"><span class="refname">MongoCollection::validate</span> &mdash; <span class="dc-title">Validates this collection</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mongocollection.validate-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span> <span class="methodname"><strong>MongoCollection::validate</strong></span>
    ([ <span class="methodparam"><span class="type">bool</span> <code class="parameter">$scan_data</code><span class="initializer"> = <strong><code>FALSE</code></strong></span></span>
  ] )</div>

 </div>


 <div class="refsect1 parameters" id="refsect1-mongocollection.validate-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>

      <em><code class="parameter">scan_data</code></em>
     </dt>

     <dd>

      <p class="para">
       Only validate indices, not the base collection.
      </p>
     </dd>

       
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mongocollection.validate-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the database&#039;s evaluation of this object.
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mongocollection.update.html">MongoCollection::update</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.mongocursor.html">MongoCursor</a></div>
 <div class="up"><a href="class.mongocollection.html">MongoCollection</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
